.class public Lcom/instagram/creation/video/ui/w;
.super Landroid/widget/PopupWindow;
.source "VideoPopup.java"


# instance fields
.field private a:Lcom/instagram/creation/video/ui/x;


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/instagram/creation/video/ui/x;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    const/4 v2, -0x2

    .line 42
    invoke-virtual {p2}, Lcom/instagram/creation/video/ui/x;->a()I

    move-result v0

    invoke-virtual {p2}, Lcom/instagram/creation/video/ui/x;->b()I

    move-result v1

    invoke-static {p1, v0, v1}, Lcom/instagram/creation/video/ui/w;->a(Landroid/content/Context;II)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-direct {p0, v0, v2, v2, v1}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V

    .line 46
    iput-object p2, p0, Lcom/instagram/creation/video/ui/w;->a:Lcom/instagram/creation/video/ui/x;

    .line 47
    return-void
.end method

.method private static a(Landroid/content/Context;II)Landroid/view/View;
    .locals 4
    .parameter
    .parameter
    .parameter

    .prologue
    .line 50
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Lcom/facebook/ax;->popup_camcorder:I

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v1

    .line 51
    sget v0, Lcom/facebook/aw;->popup_root:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setBackgroundResource(I)V

    .line 52
    sget v0, Lcom/facebook/aw;->popup_textview:I

    invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(I)V

    .line 53
    return-object v1
.end method


# virtual methods
.method public a()Lcom/instagram/creation/video/ui/x;
    .locals 1

    .prologue
    .line 57
    iget-object v0, p0, Lcom/instagram/creation/video/ui/w;->a:Lcom/instagram/creation/video/ui/x;

    return-object v0
.end method
